package com.wwg.cms.bo.entity;
import com.wwg.cms.bo.*;
/**
 *create auto on 2010-8-31 16:43:18
 *create by wwl
 * placard
 * 
 * @hibernate.class table="placard" *  mutable="true" 
 *  proxy="com.wwg.cms.bo.entity.PlacardEntity" 
 */
public class PlacardEntity implements Placard{

	 private Long id;
	 private java.util.Date startTime;
	 private java.util.Date endTime;
	 private String title;
	 private String content;
	 private Long userId;
	/**
	 *
 	 *
	 * @hibernate.id  column="id"
	 *  unsaved-value="null"
 	 *  generator-class="native"
	 * @return Long 
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id){
		this.id = id;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="start_time"
	 * @return java.util.Date 
	 */
	public java.util.Date getStartTime() {
		return startTime;
	}
	public void setStartTime(java.util.Date startTime){
		this.startTime = startTime;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="end_time"
	 * @return java.util.Date 
	 */
	public java.util.Date getEndTime() {
		return endTime;
	}
	public void setEndTime(java.util.Date endTime){
		this.endTime = endTime;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="title"
	 * @return String 
	 */
	public String getTitle() {
		return title;
	}
	public void setTitle(String title){
		this.title = title;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="content"
	 * @return String 
	 */
	public String getContent() {
		return content;
	}
	public void setContent(String content){
		this.content = content;
	}
	/**
	 *
 	 *
	 * @hibernate.property column="user_id"
	 * @return Long 
	 */
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId){
		this.userId = userId;
	}
  @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PlacardEntity that = (PlacardEntity) o;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? PlacardEntity.class.hashCode()+id.hashCode() : PlacardEntity.class.hashCode();
    }


}


